import { RouteRecordRaw } from 'vue-router'

/* webpackChunkName: "common" */ 
let routes: Array<RouteRecordRaw> = [
  { path: '/',
   component: () => import('@/layout/default.vue'),
   children: [
    { 
      path: 'home',
      alias: '',
      component: () => import('@/views/home.vue'),
    },
    { path: 'demo',
      component: () => import('@/views/demo/index.vue'),
      children: [
        { 
          path: 'data-list',
          alias: '',
          component: () => import('@/views/demo/data-list.vue')
        },
      ]
    },
    { path: 'auto-code', component: () => import('@/views/auto-code.vue') },
   ]
  },
  { path: '/test', component: () => import('@/views/test.vue') },
]

export default routes